function Make_Tables(simtype)

load([simtype,'_rep1_50'])
load([simtype,'_rep51_100'])
load([simtype,'_rep101_150'])
load([simtype,'_rep151_200'])
load([simtype,'_rep201_250'])
load([simtype,'_rep251_300'])
load([simtype,'_rep301_350'])
load([simtype,'_rep351_400'])
load([simtype,'_rep401_450'])
load([simtype,'_rep451_500'])



Z= concatenate_structs({OUT1,OUT51,OUT101,OUT151,OUT201,OUT251,OUT301,OUT351,OUT451});
[panelRC,panelTE,panelPI]=make_table_panel_output(Z);
%saveas(1,['fig_',simtype],'png')
set(1,'PaperPositionMode','auto')

    print(['fig_',simtype],'-dpng')

make_latex_table_output({panelRC, panelTE, panelPI},['SimTable_',simtype,'.tex'],['fig_',simtype])



